package com.micro.ai.template.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

/**
 * 更新模板请求
 *
 * @author micro-ai
 * @since 0.0.1
 */
@Data
@Schema(description = "更新模板请求")
public class TemplateUpdateRequest {

    @Size(min = 2, max = 200, message = "模板名称长度必须在2-200之间")
    @Schema(description = "模板名称", example = "智能客服助手v2")
    private String templateName;

    @Size(max = 1000, message = "模板描述长度不能超过1000")
    @Schema(description = "模板描述", example = "更新后的描述")
    private String description;

    @Schema(description = "分类ID", example = "customer_service")
    private String categoryId;

    @Schema(description = "作者显示名称", example = "张三")
    private String author;

    @Schema(description = "许可证", example = "MIT")
    private String license;

    @Schema(description = "是否启用", example = "true")
    private Boolean enabled;

    @Schema(description = "是否公开", example = "true")
    private Boolean isPublic;

    @Schema(description = "标签列表")
    private List<String> tags;

    @Schema(description = "封面图片URL")
    private String coverImage;
}

